package com.onpositive.wikidataeditor;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class FilePerspective implements IPerspectiveFactory {

	/**
	 * The ID of the perspective as specified in the extension.
	 */
	public static final String ID = "com.onpositive.wikidataeditor.filePerspective";

	public void createInitialLayout(IPageLayout layout)
	{
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		
		layout.addStandaloneView( FileListView.ID,  false, IPageLayout.LEFT, 0.25f, editorArea);
		layout.addView( FilePropertiesView.ID, IPageLayout.RIGHT, 1.0f, editorArea);
		//IFolderLayout folder = layout.createFolder("File properties", IPageLayout.TOP, 0.5f, editorArea);
		//folder.addPlaceholder(View.ID + ":*");
		//folder.addView(View.ID);
		
		layout.getViewLayout(FileListView.ID).setCloseable(false);
	}
}
